import { httpDelete, httpGet, httpPost, httpPut } from "../utils/http"



// 获取服务包
export const findServicePacksApi = (data) => {
    return httpPost('/servicePacks/search', data)
}
// 添加服务包
export const addServicePacksApi = (data) => {
    return httpPost('/servicePacks/add', data)
}
// 删除服务包
export const deleteServicePacksApi = (data) => {
    return httpDelete('/servicePacks/remove', data)
}
// 修改服务包
export const updateServicePacksApi = (data) => {
    return httpPut('/servicePacks/update', data)
}
// 获取所有服务包分类名称
export const getServicePacksTypesApi = () => {
    return httpGet('/servicePacks/types')
}

// 获取服务项目
export const findServiceItemsApi = (data) => {
    return httpPost('/serviceItems/search', data)
}
// 添加服务项目
export const addServiceItemsApi = (data) => {
    return httpPost('/serviceItems/add', data)
}
// 删除服务项目
export const deleteServiceItemsApi = (data) => {
    return httpDelete('/serviceItems/remove', data)
}
// 修改服务项目
export const updateServiceItemsApi = (data) => {
    return httpPut('/serviceItems/update', data)
}